package com.example.pc.videodemo.emq.model.ip_address

import com.example.pc.videodemo.emq.model.EmqConstant
import com.example.pc.videodemo.emq.model.MqttMassgePostBase
import com.example.pc.videodemo.emq.Publisher

data class IpAddressPublisher(var s: String?) : Publisher() {
    override val emq: EmqConstant.androidToServerEnum
        get() = EmqConstant.androidToServerEnum.ipAddress
    override val message: MqttMassgePostBase
        get() {
            val postBean = IpAddressPostBeanBase()
            val ipBean = IpAddressPostBeanBase.IpBean(s)
            postBean.data = ipBean
            return postBean
        }
}